home *** CD-ROM | disk | FTP | other *** search
/ GKGM 014 / GKGM014.iso / hentai / DOCTOR FUCK GAME.swf / scripts / frame_20 / DoAction.as
Text File  |  2007-01-09  |  10KB  |  339 lines

  1. this.stop();
  2. mySound();
  3. TextDataSet();
  4. _root.onEnterFrame = function()
  5. {
  6.    var _loc2_ = _root;
  7.    var cf = _loc2_._currentframe - 15;
  8.    spiritCheak(0);
  9.    switch(cf)
  10.    {
  11.       case 5:
  12.          var _loc3_ = _loc2_.openingMC;
  13.          var tgc = _loc3_._currentframe;
  14.          var tgt = _loc3_._totalframes;
  15.          if(tgc == 55 && !txtEndflg)
  16.          {
  17.             textDisplay(0,_loc3_.txt0,2);
  18.          }
  19.          if(tgc == 60 && !txtEndflg)
  20.          {
  21.             textDisplay(1,_loc3_.txt1,3);
  22.          }
  23.          if(tgc == 65 && !txtEndflg)
  24.          {
  25.             textDisplay(2,_loc3_.txt2,2);
  26.          }
  27.          if(txtEndflg)
  28.          {
  29.             _loc3_.nextBtnMC.play();
  30.          }
  31.          else
  32.          {
  33.             _loc3_.nextBtnMC.gotoAndStop(1);
  34.          }
  35.          if(tgc == tgt)
  36.          {
  37.             _loc2_.gotoAndStop(25);
  38.          }
  39.          break;
  40.       case 10:
  41.          _loc3_ = _loc2_.ayaMC.upperB;
  42.          var tg1 = _loc2_.ayaMC.upperB.blazer;
  43.          var tg2 = _loc2_.ayaMC.upperB.ribon;
  44.          var tg3 = _loc2_.ayaMC.upperB.shirt;
  45.          var tg4 = _loc2_.ayaMC.upperB.bra;
  46.          var tg5 = _loc2_.ayaMC.LowerB;
  47.          var tg6 = tg5.R_footMC;
  48.          var tg7 = tg5.L_footMC;
  49.          if(_loc3_._currentframe == 1 && tg1._currentframe == 3)
  50.          {
  51.             _loc3_.pointMC._visible = true;
  52.             _loc3_.B_sw3._visible = true;
  53.             _loc3_.pointMC.gotoAndPlay(1);
  54.             if(tg1.blazer3MC._currentframe == tg1.blazer3MC._totalframes)
  55.             {
  56.                _loc3_.nextFrame();
  57.                bustLV++;
  58.                _loc3_.R_sw._visible = true;
  59.                _loc3_.pointMC._visible = false;
  60.                _loc3_.B_sw3._visible = false;
  61.             }
  62.          }
  63.          if(_loc3_._currentframe == 2 && tg2._currentframe == tg2._totalframes)
  64.          {
  65.             _loc3_.nextFrame();
  66.             var _loc1_ = 1;
  67.             while(_loc1_ <= 4)
  68.             {
  69.                _loc3_["S_sw" + _loc1_]._visible = true;
  70.                _loc1_ = _loc1_ + 1;
  71.             }
  72.          }
  73.          if(_loc3_._currentframe == 3)
  74.          {
  75.             if(!_loc3_.S_sw1._visible && !_loc3_.S_sw2._visible && !_loc3_.S_sw3._visible && !_loc3_.S_sw4._visible)
  76.             {
  77.                _loc3_.pointMC._visible = true;
  78.                _loc3_.B_sw3._visible = true;
  79.                _loc3_.pointMC.gotoAndPlay(1);
  80.             }
  81.             if(tg3._currentframe == tg3._totalframes)
  82.             {
  83.                _loc3_.nextFrame();
  84.                bustLV++;
  85.                _loc3_.pointMC._visible = false;
  86.                _loc3_.B_sw3._visible = false;
  87.             }
  88.          }
  89.          if(_loc3_._currentframe == 4)
  90.          {
  91.             if(tg4.braH_L._currentframe == 6 && tg4.braH_R._currentframe == 6)
  92.             {
  93.                acFlg = true;
  94.                tg4.play();
  95.             }
  96.             if(tg4._currentframe == tg4._totalframes)
  97.             {
  98.                _loc3_.nextFrame();
  99.                bustLV++;
  100.             }
  101.          }
  102.          if(_loc3_._currentframe == 5 && ssFlg)
  103.          {
  104.             _loc3_.pointMC._visible = true;
  105.             _loc3_.B_sw3._visible = true;
  106.             _loc3_.pointMC.gotoAndPlay(1);
  107.          }
  108.          if(tg6._currentframe == tg6._totalframes && tg7._currentframe == tg7._totalframes)
  109.          {
  110.             ssFlg = true;
  111.          }
  112.          var r = Math.floor(Math.random() * 130);
  113.          if(r == 0)
  114.          {
  115.             _loc2_.ayaMC.LowerB.prevFrame();
  116.          }
  117.          if(!faFlg)
  118.          {
  119.             switch(bustLV)
  120.             {
  121.                case 0:
  122.                   _loc2_.ayaMC.head.gotoAndStop(1);
  123.                   break;
  124.                case 1:
  125.                   _loc2_.ayaMC.head.gotoAndStop(2);
  126.                   break;
  127.                case 2:
  128.                   _loc2_.ayaMC.head.gotoAndStop(3);
  129.                   break;
  130.                case 3:
  131.                   _loc2_.ayaMC.head.gotoAndStop(4);
  132.                   break;
  133.                case 4:
  134.                   _loc2_.ayaMC.head.gotoAndStop(5);
  135.             }
  136.          }
  137.          break;
  138.       case 15:
  139.          _loc3_ = _loc2_.ayaMC.footMC;
  140.          var tg1 = _loc2_.dataMC;
  141.          var tg2 = _loc3_._currentframe;
  142.          var tg4 = _loc2_.ayaMC;
  143.          var tg5 = _loc2_.ayaMC.bodyMC;
  144.          var tg6 = tg5.RarmMC;
  145.          var tg7 = tg5.LarmMC;
  146.          var tg10 = tg5.headMC;
  147.          if(takusiFlg)
  148.          {
  149.             _loc3_.pointMC._visible = true;
  150.          }
  151.          if(skFlg || panSflg)
  152.          {
  153.             _loc3_.pointMC._visible = false;
  154.          }
  155.          else if(!skFlg || !panSflg)
  156.          {
  157.             _loc3_.pointMC._visible = true;
  158.          }
  159.          if(tg6._currentframe >= 4 && tg7._currentframe >= 4)
  160.          {
  161.             tg5.body.setPaiMC._visible = false;
  162.             tg7.hoseiMC._visible = false;
  163.             tg5.RpaiMC._visible = true;
  164.             tg5.LpaiMC._visible = true;
  165.             if(tchFlg)
  166.             {
  167.                if(LR == 1)
  168.                {
  169.                   tg5.LpaiMC.gotoAndStop(Mcheck());
  170.                }
  171.                else if(LR == 0)
  172.                {
  173.                   tg5.RpaiMC.gotoAndStop(Mcheck());
  174.                }
  175.                tg10.gotoAndStop(11);
  176.                if(tg10.reAC1._currentframe == 1)
  177.                {
  178.                   tg4.nextFrame();
  179.                }
  180.             }
  181.          }
  182.          else
  183.          {
  184.             tg5.body.setPaiMC._visible = true;
  185.             tg7.hoseiMC._visible = true;
  186.             tg5.RpaiMC._visible = false;
  187.             tg5.LpaiMC._visible = false;
  188.          }
  189.          if(wakiFlg)
  190.          {
  191.             tg4.nextFrame();
  192.             var r = Math.floor(Math.random() * 3);
  193.             if(r == 0)
  194.             {
  195.                tg6.prevFrame();
  196.                tg7.prevFrame();
  197.             }
  198.             tg10.gotoAndStop(13);
  199.             wakiFlg = false;
  200.          }
  201.          if(kutiFlg)
  202.          {
  203.             tg5.nextFrame();
  204.             tg10.gotoAndStop(14);
  205.             kutiFlg = false;
  206.          }
  207.          if(manFlg)
  208.          {
  209.             tg4.nextFrame();
  210.             tg5.nextFrame();
  211.             var r = Math.floor(Math.random() * 10);
  212.             if(r == 0)
  213.             {
  214.                _loc3_.prevFrame();
  215.             }
  216.             tg10.gotoAndStop(12);
  217.             manCo++;
  218.             if(manCo > aanCf)
  219.             {
  220.                manFlg = false;
  221.                manCo = 0;
  222.             }
  223.             if(simiCo < 30)
  224.             {
  225.                simiCo += 0.1;
  226.             }
  227.             _loc3_.pantuMC.simiMC._alpha = simiCo;
  228.          }
  229.          if(tg1._currentframe >= 50)
  230.          {
  231.             if(tg6._currentframe == tg6._totalframes && tg7._currentframe == tg7._totalframes && _loc3_._currentframe == _loc3_._totalframes && panFlg)
  232.             {
  233.                _loc2_.acFlg = true;
  234.                _loc2_.spiritCheak(4,1);
  235.                _loc2_.gotoAndStop(35);
  236.             }
  237.          }
  238.          switch(tg10._currentframe)
  239.          {
  240.             case 11:
  241.                if(tg10.reAC1._currentframe == tg10.reAC1._totalframes)
  242.                {
  243.                   tg10.gotoAndStop(faceSt);
  244.                }
  245.                break;
  246.             case 12:
  247.                if(tg10.reAC2._currentframe == tg10.reAC2._totalframes)
  248.                {
  249.                   tg10.gotoAndStop(faceSt);
  250.                }
  251.                break;
  252.             case 13:
  253.                if(tg10.reAC3._currentframe == tg10.reAC3._totalframes)
  254.                {
  255.                   tg10.gotoAndStop(faceSt);
  256.                }
  257.                break;
  258.             case 14:
  259.                if(tg10.reAC4._currentframe == tg10.reAC4._totalframes)
  260.                {
  261.                   tg10.gotoAndStop(faceSt);
  262.                }
  263.          }
  264.          break;
  265.       case 20:
  266.          _loc3_ = _loc2_.ayaMC.footMC;
  267.          var tg1 = _loc2_.dataMC;
  268.          var tg2 = _loc3_._currentframe;
  269.          var tg4 = _loc2_.ayaMC;
  270.          var tg5 = _loc2_.ayaMC.bodyMC;
  271.          var tg7 = _loc3_.manHandMC;
  272.          var tg10 = tg5.headMC;
  273.          if(_loc3_.manHandMC.hitTest(_xmouse,_ymouse,true))
  274.          {
  275.             if(yubiCheck())
  276.             {
  277.                tg7.nextFrame();
  278.                tg4.nextFrame();
  279.                if(tg5._currentframe == 1)
  280.                {
  281.                   tg5.play();
  282.                }
  283.                spiritCheak(2);
  284.                tg10.gotoAndStop(12);
  285.                var r = Math.floor(Math.random() * 10);
  286.                if(r == 0)
  287.                {
  288.                   _loc3_.nextFrame();
  289.                }
  290.             }
  291.          }
  292.          if(tchFlg)
  293.          {
  294.             tg4.nextFrame();
  295.          }
  296.          if(wakiFlg)
  297.          {
  298.             tg4.nextFrame();
  299.          }
  300.          if(tg1._currentframe == tg1._totalframes)
  301.          {
  302.             _loc2_.acFlg = true;
  303.             _loc2_.gotoAndStop(40);
  304.          }
  305.          if(tg10.reAC2._currentframe == tg10.reAC2._totalframes)
  306.          {
  307.             tg10.gotoAndStop(3);
  308.          }
  309.          break;
  310.       case 25:
  311.          _loc3_ = _loc2_.ayaMC;
  312.          var tgc = _loc3_._currentframe;
  313.          var tgm1 = _loc3_.bodyMC.upperBMC.headMC.meganeMC;
  314.          var tgm2 = _loc3_.bodyMC.headMC.meganeMC;
  315.          if(!megaFlg)
  316.          {
  317.             tgm1._visible = false;
  318.             tgm2._visible = false;
  319.          }
  320.          else
  321.          {
  322.             tgm1._visible = true;
  323.             tgm2._visible = true;
  324.          }
  325.          if(tgc == 175 && !txtEndflg)
  326.          {
  327.             textDisplay(3,_loc3_.txt0,3);
  328.          }
  329.          if(txtEndflg)
  330.          {
  331.             _loc3_.nextBtnMC.play();
  332.          }
  333.          else
  334.          {
  335.             _loc3_.nextBtnMC.gotoAndStop(1);
  336.          }
  337.    }
  338. };
  339.